<?php
defined('_JEXEC') or die('Restricted access');


if(JRequest::getVar('task')=='search'){$linkTask='&amp;task=search';}else{$linkTask='';}
$LinkPage = 'index.php?option=com_properties'.$linkTask;?>
<form action="<?php echo JRoute::_($LinkPage);?>" name="pageForm" id="pageForm" method="post">
<?php
if(JRequest::getVar('cyid')){$cyid = JRequest::getVar('cyid');}
if(JRequest::getVar('sid')){$sid = JRequest::getVar('sid');}
if(JRequest::getVar('lid')){$lid = JRequest::getVar('lid');}
if(JRequest::getVar('cid')){$cid = JRequest::getVar('cid');}
if(JRequest::getVar('tid')){$tid = JRequest::getVar('tid');}
$task = JRequest::getVar('task');

if(JRequest::getVar('order')){$order = JRequest::getVar('order');}else{$order ='desc';}
if(JRequest::getVar('ShowOrderBy')){$ShowOrderBy = JRequest::getVar('ShowOrderBy');}


if(JRequest::getVar('id_minprice')){ $id_minprice = JRequest::getVar('id_minprice');}
if(JRequest::getVar('id_maxprice')){ $id_maxprice = JRequest::getVar('id_maxprice');}
if(JRequest::getVar('id_bedrooms')){ $id_bedrooms = JRequest::getVar('id_bedrooms');}
if(JRequest::getVar('id_bathrooms')){ $id_minprice = JRequest::getVar('id_bathrooms');}
if(JRequest::getVar('id_garage')){ $id_minprice = JRequest::getVar('id_garage');}

?>
<input type="hidden" name="cyid" id="cyid" value="<?php echo $cyid;?>" />
<input type="hidden" name="sid" id="sid" value="<?php echo $sid;?>" />
<input type="hidden" name="lid" id="lid" value="<?php echo $lid;?>" />
<input type="hidden" name="cid" id="cid" value="<?php echo $cid;?>" />
<input type="hidden" name="tid" id="tid" value="<?php echo $tid;?>" />

<input type="hidden" name="task" id="task" value="<?php echo $task;?>" />
<input type="hidden" name="limitstart" id="limitstart" value="" />
<input type="hidden" name="order" id="order" value="<?php echo $order;?>" />
<input type="hidden" name="ShowOrderBy" id="ShowOrderBy" value="<?php echo $ShowOrderBy;?>" />

<input type="hidden" name="id_minprice" id="id_minprice" value="<?php echo $id_minprice;?>" />
<input type="hidden" name="id_maxprice" id="id_maxprice" value="<?php echo $id_maxprice;?>" />
<input type="hidden" name="id_bedrooms" id="id_bedrooms" value="<?php echo $id_bedrooms;?>" />
<input type="hidden" name="id_bathrooms" id="id_bathrooms" value="<?php echo $id_bathrooms;?>" />
<input type="hidden" name="id_garage" id="id_garage" value="<?php echo $id_garage;?>" />

<div id="PagesLinks">
	  <?php echo $this->pagination->getPagesLinks(); ?>
 <div style="clear: both;"></div>      
      </div> 

      <div id="ResultsCounter">
      <?php echo $this->pagination->getResultsCounter().' | '.$this->pagination->getPagesCounter(); ?>
      </div>
 </form>     